package com.leyou.common.exceptions;

import com.leyou.common.enums.ExceptionEnum;

public class LyException extends RuntimeException {
    private int status;

//    public LyException(String message, int status) {
//        super(message);
//        this.status = status;
//    }

    public LyException(ExceptionEnum em) {
        super(em.getMessage());
        this.status = em.getStatus();
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
